package com.store.pet.petstore;

import android.app.Application;
import android.content.Context;

import com.blankj.utilcode.util.Utils;
import com.store.pet.petstore.util.SharedPreferencesUtil;

public class MyApplication extends Application {

    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        Utils.init(this);
        SharedPreferencesUtil.init(getApplicationContext(), getPackageName() + "_preference", Context.MODE_PRIVATE);
    }

    public static Context getContext(){
        return context;
    }
}
